package com.huashi.dealer.commonEntity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import java.io.Serializable;
import java.math.BigDecimal;

/**
 * 业务员地区规则表
 * 对应数据库表：yoshop_store_user_rule
 * 
 * @author 系统生成
 * @since 2025-08-07
 */
@Data
@TableName("yoshop_store_user_rule")
@Schema(description = "业务员地区规则表")
public class StoreUserRule implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 规则id
     */
    @TableId(value = "rule_id", type = IdType.AUTO)
    @Schema(description = "规则id")
    private Integer ruleId;

    /**
     * 业务员id
     */
    @TableField("store_user_id")
    @Schema(description = "业务员id")
    private Integer storeUserId;

    /**
     * 可配送区域(城市id集)
     */
    @TableField("region")
    @Schema(description = "可配送区域(城市id集)")
    private String region;

    /**
     * 首件(个)/首重(Kg)
     */
    @TableField("first")
    @Schema(description = "首件(个)/首重(Kg)")
    private Double first;

    /**
     * 运费(元)
     */
    @TableField("first_fee")
    @Schema(description = "运费(元)")
    private BigDecimal firstFee;

    /**
     * 续件/续重
     */
    @TableField("additional")
    @Schema(description = "续件/续重")
    private Double additional;

    /**
     * 续费(元)
     */
    @TableField("additional_fee")
    @Schema(description = "续费(元)")
    private BigDecimal additionalFee;

    /**
     * 小程序id
     */
    @TableField("wxapp_id")
    @Schema(description = "小程序id")
    private Integer wxappId;

    /**
     * 创建时间
     */
    @TableField("create_time")
    @Schema(description = "创建时间")
    private Integer createTime;
}
